package gui;

import java.util.ArrayList;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class MessageErrorUI {
	
	public MessageErrorUI(JFrame source, ArrayList<String> listeError){
		String errors = "";
		for(int i = 0; i < listeError.size(); i++){
			errors += listeError.get(i) + System.getProperty("line.separator");
		}
		JOptionPane.showMessageDialog(
			    source,
			    errors
			    );		
	}
	
}
